/**
 * Copyright (c) 2015-2030 by Beijing Yanlight Co., Ltd.
 * All rights reserved.
 */
package com.yanlight.support;

/**
 * 
 * @author haolw
 * @time 2018/02/08
 */
public abstract class DevTokenHolder {
	private static final InheritableThreadLocal<String> holder = new InheritableThreadLocal<String>();

	public static String get() {
		return holder.get();
	}

	protected static void save(String token) {
		holder.set(token);
	}

	protected static void reset() {
		holder.remove();
	}
}
